<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>孕育宝典 - 知识列表</title>
        <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
        <style>
            body {
                font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
                background-color: #f5f5f5;
                color: #333333;
                margin: 0;
                padding: 0;
            }
            .device-container {
                width: 390px;
                height: 844px;
                overflow: hidden;
                position: relative;
                background-color: #f5f5f5;
            }
            .status-bar {
                height: 44px;
                background-color: #ffffff;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 20px;
                font-size: 14px;
                font-weight: 600;
            }
            .header {
                background-color: #ffffff;
                padding: 12px 16px;
                display: flex;
                flex-direction: column;
                border-bottom: 1px solid #f0f0f0;
            }
            .search-bar {
                display: flex;
                align-items: center;
                background-color: #f0f0f0;
                border-radius: 16px;
                padding: 8px 12px;
                margin-top: 8px;
            }
            .search-bar i {
                color: #999;
                margin-right: 8px;
            }
            .search-input {
                background-color: transparent;
                border: none;
                flex: 1;
                font-size: 14px;
                color: #333;
            }
            .search-input::placeholder {
                color: #999;
            }
            .search-input:focus {
                outline: none;
            }
            .nav-bar {
                height: 60px;
                background-color: #ffffff;
                position: absolute;
                bottom: 0;
                width: 100%;
                display: flex;
                justify-content: space-around;
                align-items: center;
                border-top: 1px solid #f0f0f0;
            }
            .nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #666666;
                font-size: 10px;
            }
            .nav-item.active {
                color: #ff9fb5;
            }
            .main-content {
                height: calc(844px - 44px - 60px - 114px);
                overflow-y: auto;
                padding-bottom: 20px;
            }
            .category-tabs {
                background-color: #ffffff;
                padding: 12px 0;
                display: flex;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .category-tabs::-webkit-scrollbar {
                display: none;
            }
            .category-tab {
                flex: 0 0 auto;
                padding: 6px 16px;
                font-size: 14px;
                color: #666;
                border-radius: 16px;
                margin-left: 10px;
                white-space: nowrap;
            }
            .category-tab:first-child {
                margin-left: 16px;
            }
            .category-tab:last-child {
                margin-right: 16px;
            }
            .category-tab.active {
                background-color: #ff9fb5;
                color: white;
                font-weight: 500;
            }
            .section-title {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin: 16px 16px 12px;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            .section-title-more {
                font-size: 13px;
                font-weight: normal;
                color: #999;
            }
            .article-card {
                background-color: #ffffff;
                border-radius: 12px;
                margin: 0 16px 12px;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
                display: flex;
            }
            .article-content {
                flex: 1;
            }
            .article-title {
                font-size: 15px;
                font-weight: 500;
                color: #333;
                margin-bottom: 8px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .article-meta {
                display: flex;
                justify-content: space-between;
                font-size: 12px;
                color: #999;
            }
            .article-category {
                background-color: #f5e6ea;
                color: #ff9fb5;
                padding: 2px 6px;
                border-radius: 4px;
                font-size: 11px;
                margin-right: 8px;
            }
            .article-image {
                width: 80px;
                height: 80px;
                border-radius: 8px;
                margin-left: 12px;
                background-color: #f0f0f0;
                overflow: hidden;
            }
            .article-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            .featured-card {
                background-color: #ffffff;
                margin: 0 16px 12px;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .featured-image {
                height: 140px;
                background-color: #f0f0f0;
                position: relative;
            }
            .featured-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            .featured-badge {
                position: absolute;
                top: 12px;
                left: 12px;
                background-color: #ff9fb5;
                color: white;
                padding: 2px 8px;
                border-radius: 4px;
                font-size: 12px;
                font-weight: 500;
            }
            .featured-content {
                padding: 12px 16px;
            }
            .featured-title {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin-bottom: 8px;
            }
            .featured-desc {
                font-size: 13px;
                color: #666;
                margin-bottom: 8px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .tag-group {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-bottom: 8px;
            }
            .tag {
                background-color: #f5e6ea;
                color: #ff9fb5;
                padding: 2px 8px;
                border-radius: 4px;
                font-size: 12px;
            }
            .article-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                padding: 0 16px;
            }
            .grid-card {
                background-color: #ffffff;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .grid-image {
                height: 100px;
                background-color: #f0f0f0;
            }
            .grid-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            .grid-content {
                padding: 10px;
            }
            .grid-title {
                font-size: 14px;
                font-weight: 500;
                color: #333;
                margin-bottom: 6px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .grid-meta {
                font-size: 12px;
                color: #999;
            }
            .divider {
                height: 8px;
                background-color: #f5f5f5;
            }
        </style>
    </head>
    <body>
        <div class="device-container">
            <!-- iOS状态栏 -->
            <div class="status-bar">
                <span>9:41</span>
                <div class="flex items-center">
                    <i class="fas fa-signal mr-1"></i>
                    <i class="fas fa-wifi mr-1"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            </div>

            <!-- 页面头部 -->
            <div class="header">
                <div class="flex justify-between items-center">
                    <h1 class="text-lg font-medium">孕育知识库</h1>
                    <i class="fas fa-bookmark text-gray-500"></i>
                </div>
                <div class="search-bar">
                    <i class="fas fa-search"></i>
                    <input type="text" class="search-input" placeholder="搜索孕期知识、食谱、常见问题" />
                </div>
            </div>

            <!-- 分类标签 -->
            <div class="category-tabs">
                <div class="category-tab active">全部</div>
                <div class="category-tab">备孕期</div>
                <div class="category-tab">孕早期</div>
                <div class="category-tab">孕中期</div>
                <div class="category-tab">孕晚期</div>
                <div class="category-tab">产后恢复</div>
                <div class="category-tab">育儿知识</div>
                <div class="category-tab">营养饮食</div>
            </div>

            <!-- 主内容区 -->
            <div class="main-content">
                <!-- 精选推荐 -->
                <div class="section-title">
                    <span>精选推荐</span>
                    <span class="section-title-more">查看更多 <i class="fas fa-chevron-right text-xs"></i></span>
                </div>

                <div class="featured-card">
                    <div class="featured-image">
                        <img src="https://via.placeholder.com/400x200" alt="备孕期如何健康饮食" />
                        <div class="featured-badge">精选</div>
                    </div>
                    <div class="featured-content">
                        <div class="featured-title">备孕期如何健康饮食，科学补充营养</div>
                        <div class="featured-desc">
                            备孕期的饮食对于孕育健康宝宝至关重要，本文将详细介绍备孕期间应该如何合理安排饮食，科学补充各类营养素...
                        </div>
                        <div class="tag-group">
                            <div class="tag">备孕期</div>
                            <div class="tag">营养饮食</div>
                            <div class="tag">叶酸补充</div>
                        </div>
                        <div class="article-meta">
                            <div class="flex items-center">
                                <i class="fas fa-eye mr-1"></i>
                                <span>2.3万</span>
                            </div>
                            <div>2023-06-15</div>
                        </div>
                    </div>
                </div>

                <!-- 热门推荐 -->
                <div class="section-title">
                    <span>热门推荐</span>
                    <span class="section-title-more">查看更多 <i class="fas fa-chevron-right text-xs"></i></span>
                </div>

                <div class="article-card">
                    <div class="article-content">
                        <div class="article-title">孕早期不适症状有哪些？如何有效缓解孕吐？</div>
                        <div class="article-meta">
                            <div class="flex items-center">
                                <span class="article-category">孕早期</span>
                                <i class="fas fa-eye mr-1"></i>
                                <span>1.5万</span>
                            </div>
                            <div>2023-06-10</div>
                        </div>
                    </div>
                    <div class="article-image">
                        <img src="https://via.placeholder.com/100x100" alt="孕早期不适" />
                    </div>
                </div>

                <div class="article-card">
                    <div class="article-content">
                        <div class="article-title">排卵期同房的最佳时间，提高受孕几率的科学方法</div>
                        <div class="article-meta">
                            <div class="flex items-center">
                                <span class="article-category">备孕期</span>
                                <i class="fas fa-eye mr-1"></i>
                                <span>1.2万</span>
                            </div>
                            <div>2023-06-05</div>
                        </div>
                    </div>
                    <div class="article-image">
                        <img src="https://via.placeholder.com/100x100" alt="排卵期同房" />
                    </div>
                </div>

                <div class="article-card">
                    <div class="article-content">
                        <div class="article-title">孕期营养食谱：每个阶段都需要的营养素和食物推荐</div>
                        <div class="article-meta">
                            <div class="flex items-center">
                                <span class="article-category">营养饮食</span>
                                <i class="fas fa-eye mr-1"></i>
                                <span>9800</span>
                            </div>
                            <div>2023-05-28</div>
                        </div>
                    </div>
                    <div class="article-image">
                        <img src="https://via.placeholder.com/100x100" alt="孕期营养食谱" />
                    </div>
                </div>

                <div class="divider"></div>

                <!-- 最新内容 -->
                <div class="section-title">
                    <span>最新内容</span>
                    <span class="section-title-more">查看更多 <i class="fas fa-chevron-right text-xs"></i></span>
                </div>

                <div class="article-grid">
                    <div class="grid-card">
                        <div class="grid-image">
                            <img src="https://via.placeholder.com/200x100" alt="孕期运动指南" />
                        </div>
                        <div class="grid-content">
                            <div class="grid-title">孕期运动指南：安全有效的运动方式</div>
                            <div class="grid-meta">2023-06-20</div>
                        </div>
                    </div>

                    <div class="grid-card">
                        <div class="grid-image">
                            <img src="https://via.placeholder.com/200x100" alt="产后恢复" />
                        </div>
                        <div class="grid-content">
                            <div class="grid-title">产后恢复：子宫收缩与身体调养</div>
                            <div class="grid-meta">2023-06-18</div>
                        </div>
                    </div>

                    <div class="grid-card">
                        <div class="grid-image">
                            <img src="https://via.placeholder.com/200x100" alt="胎教音乐" />
                        </div>
                        <div class="grid-content">
                            <div class="grid-title">胎教音乐：促进胎儿大脑发育的选择</div>
                            <div class="grid-meta">2023-06-15</div>
                        </div>
                    </div>

                    <div class="grid-card">
                        <div class="grid-image">
                            <img src="https://via.placeholder.com/200x100" alt="母乳喂养" />
                        </div>
                        <div class="grid-content">
                            <div class="grid-title">母乳喂养：正确姿势与常见问题解答</div>
                            <div class="grid-meta">2023-06-12</div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部导航栏 -->
            <div class="nav-bar">
                <div class="nav-item">
                    <i class="fas fa-home text-xl mb-1"></i>
                    <span>首页</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-notes-medical text-xl mb-1"></i>
                    <span>记录</span>
                </div>
                <div class="nav-item active">
                    <i class="fas fa-book-medical text-xl mb-1"></i>
                    <span>知识库</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user-friends text-xl mb-1"></i>
                    <span>伴侣空间</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user text-xl mb-1"></i>
                    <span>我的</span>
                </div>
            </div>
        </div>
    </body>
</html>
